<?php
namespace Product\Model;

class ProductCatalog 
{
    public $id;
    public $name;
    public $description;
    public $status;
    public $type;
    public $pricefrequency;
    public $item_id;
    public $sellpriceformula_id;
    public $cost_currencyvalue_id;
    public $listprice_currencyvalue_id;
    public $sellprice_currencyvalue_id;
	
	
    public function exchangeArray($data)
    {
        $this->id = (isset($data['id'])) ? $data['id'] : null;
        $this->name = (isset($data['name'])) ? $data['name'] : null;
        $this->description = (isset($data['description'])) ? $data['description']:null;
        $this->status = (isset($data['status'])) ? $data['status']:null;
		$this->type = (isset($data['type'])) ? $data['type']:null;
		$this->pricefrequency = (isset($data['pricefrequency'])) ? $data['pricefrequency']:null;
        $this->item_id = (isset($data['item_id'])) ? $data['item_id']:null;
		$this->sellpriceformula_id = (isset($data['sellpriceformula_id'])) ? $data['sellpriceformula_id']:null;
		$this->cost_currencyvalue_id= (isset($data['cost_currencyvalue_id'])) ? $data['cost_currencyvalue_id']:null;
		$this->listprice_currencyvalue_id= (isset($data['listprice_currencyvalue_id'])) ? $data['listprice_currencyvalue_id']:null;
		$this->sellprice_currencyvalue_id= (isset($data['sellprice_currencyvalue_id'])) ? $data['sellprice_currencyvalue_id']:null;
		
    }
	
	public function __construct(array $options = null) {
        if (is_array($options)) {
            $this->setOptions($options);
        }
    }
        
    public function getArrayCopy()
     {
         return get_object_vars($this);
     }
}